package com.m7.yiduzw.cms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.m7.yiduzw.cms.dao.TestMapperDao;
import com.m7.yiduzw.cms.service.TestService;
import com.m7.yiduzw.vo.TestVo;

@Service
public class TestServiceImpl implements TestService {

	@Autowired
	private TestMapperDao testMapper;

	@Override
	public void saveTest(TestVo testVo) {

		testVo.setId("testId" + Math.random());
		testMapper.insertTest(testVo);
	}

	@Override
	public void deleteTest(String testId) {
		
		testMapper.deleteTest(testId);
	}

	@Override
	public List<TestVo> selectTest() {

		return testMapper.selectTest();
	}

}
